class_name BlockDataBase
extends RefCounted

enum{
	AIR,
	EARTH,
	STONE
}

var blocks_data: Array[BaseBlock]

func generate_block_data():
	blocks_data.push_back(BaseBlock.new())
	blocks_data.push_back(BlockEarth.new())
	blocks_data.push_back(BlockWater.new())
	for i in blocks_data:
		i.generate()

func get_block_mesh(p_block_type):
	return blocks_data[p_block_type].get_block_mesh()
